package com.youmu.maven.emall.entity;

import java.util.Set;

public class Menu extends BaseEntity {

	private String name;
	private String url;
	private String icon;
	private Integer pid;

	private Set<Permission> perms;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public Set<Permission> getPerms() {
		return perms;
	}

	public void setPerms(Set<Permission> perms) {
		this.perms = perms;
	}

	@Override
	public String toString() {
		return "Menu [id=" + id + ", name=" + name + ", url=" + url + ", icon="
				+ icon + ", pid=" + pid + ", perms=" + perms + "]";
	}

}
